import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: () => import(/* webpackChunkName: "login" */ '../components/Login.vue'),
      meta: { title: '登录' }
    },
    {
      path: '/UserPage',
      component: () => import(/* webpackChunkName: "login" */ '../components/UserPage.vue'),
      meta: { title: '用户页面' }
    },
    {
      path: '/AdminPage',
      component: () => import(/* webpackChunkName: "login" */ '../components/AdminPage.vue'),
      meta: { title: '管理员页面' }
    },
  ]
})
